from scrapy.cmdline import execute
import sys
import os

sys.path.insert(0, r'C:\Users\wl\PycharmProjects\study\week1')
os.chdir(r'C:\Users\wl\PycharmProjects\study\week1')
execute('scrapy crawl day01'.split())